home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / CCTX0297.ZIP / TUTUPDT8.ZIP / NEOWMTUT.ZIP / WMTUTOPT.TX2 < prev    next >
Text File  |  1996-12-30  |  3KB  |  98 lines

  1. HOW TO OPTIMIZE YOUR MACRO VIRII
  2. --------------------------------
  3.  
  4. Ok, this one may not be very long but I think it's effective
  5. enough to put it in here.
  6.  
  7. As with every sort of virus there is a rule that if something is
  8. smaller it will go faster. With macro virii it doesn't really matter
  9. how fast the virus works because when you work on a Pentium 166 with
  10. a load of memory you will not notice the virus is even active, but
  11. there are other reasons to make your virus smaller. For instance,
  12. If your virus is 10k big and it infects a journalists network, and
  13. all the journalists together will create 250 documents in a day I'm
  14. sure somebody will notice that in 10 days the harddisk space is
  15. increased with 25 megabyte, so if you can make your virus 9k big
  16. the lost harddisk space in 10 days is only 22,5 megabytes.
  17. 2,5 megabytes with just 1k decreasement.
  18.  
  19. I hope you get the point, now I will give you a couple things to
  20. decrease your virus length with.
  21.  
  22.  
  23. Never put any comments in the actual virus, I mean, don't put
  24. any comments in the virus you will spread. If you put a virus in
  25. a magazine or something, it's better to put comments in it.
  26.  
  27. -----------------------------
  28.  
  29. Also, use as much strings as possible. I've tested it with a simple
  30. test:
  31. Create an empty template, and create a macro in that template.
  32. Now delete the Sub Main and End Sub commands and type a line like this:
  33. 'Welcome to the SLAM magazine issue 1, the Document X'
  34. Then select the line and use copy and paste to copy the line for
  35. about 50 times. When that's done select all the 50 lines and use
  36. the edit-->copy command. Then save the template with the macro
  37. as 'Test1.dot'.
  38.  
  39. Then create a second empty template and also create a macro in that
  40. template and delete the Sub Main and End Sub commands. Then paste
  41. the 50 lines to the empty macro. After that use the find replace command
  42. and type at find: Welcome to the SLAM magazine issue 1, the Document X
  43. and type at replace: A$
  44. Check to see if every line is changed in A$.
  45. then type this at the top of the macro:
  46. A$ = "Welcome to the SLAM magazine issue 1, the Document X"
  47. And finally save the template as Test2.dot.
  48.  
  49. Now go to dos and check the length of both files. See any differences?
  50.  
  51. And don't use long labels, see the following example:
  52.  
  53. In stead of using this:
  54. -----------------------------------------------------------
  55. Sub Main
  56.  
  57. CheckNumber = 0
  58. Check_CheckNumber:
  59. If CheckNumber = 5 then goto CheckNumber_is_5 else goto Checknumber_is_not_5
  60.  
  61. CheckNumber_is_not_5:
  62. CheckNumber = CheckNumber + 1
  63. goto Check_Checknumber
  64.  
  65. CheckNumber_is_5:
  66. MsgBox "CheckNumber is 5", "Finished"
  67.  
  68. End Main
  69. -----------------------------------------------------------
  70.  
  71.   You could use this:
  72. -----------------------------------------------------------
  73. Sub Main
  74.  
  75. C = 0
  76. F:
  77. If C = 5 then goto A else goto B
  78.  
  79. B:
  80. C = C + 1
  81. goto F
  82.  
  83. A:
  84. MsgBox "CheckNumber is 5", "Finished"
  85.  
  86. End Main
  87. -----------------------------------------------------------
  88.  
  89. You got it now? Ok, it won't make your virus more readable with it
  90. but it's smaller. And what the fuck do you care if some AV-pussy can't
  91. understand it :)
  92.  
  93. I think you can make up other things to decrease
  94. the size of your virus.
  95. Be creative.....
  96.  
  97.                     --- Neophyte ---
  98.